package tr.com.ibm.iic.survey.beans;

import java.io.IOException;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class User {

	
	private String userName;
	private String passWord;
	
	public void login() throws IOException{
		
		System.out.println(getUserName());
		System.out.println(getPassWord());
	     
		FacesContext context = FacesContext.getCurrentInstance();
		HttpServletRequest req= (HttpServletRequest)context.getExternalContext().getRequest();
		
		req.getParameter("");
		HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
		response.sendRedirect("event.jsp");

	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserName() {
		return userName;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public String getPassWord() {
		return passWord;
	}
}
